package cn.kgc.ssm.mapper;

import cn.kgc.ssm.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/11/14
 * @description
 */
public interface UserMapper {
    User selectUserByUserName(String username);

    void editPersonalInfo(User user);

    void editPersonalPwd(@Param("id") Integer id, @Param("newDBPassword") String newDBPassword);

    List<User> selectUserPage(@Param("age") Integer age, @Param("username") String username);

    void addUser(User user);

    void updateUser(User user);

    void batchDelete(@Param("ids") List<Integer> ids);

    void resetPwd (@Param("id") Integer id,@Param("password") String password);
}
